package com.ck.dao;

import java.util.List;

import com.ck.domain.Admin;
import com.ck.domain.Teacher;

public interface AdminDAO {
	
	public List<Admin> getAllAdmin();
	public Admin getAdminByUsername(String username);
	public Admin getAdminById(Integer id);
	public void addNewAdmin(Admin admin);
	public void deleteAdminById(Integer id);
	public void updateAdminOwnInfo(Admin admin);
	public void updateAdminLastLoginTime(Admin admin);
	public void updateAdminOwnPassword(Admin admin);
	public void updateAdminInfo(Admin admin);
	public void updateAdminPassword(Admin admin);
	
	public List<Teacher> getAllTeacher();
	public Teacher getTeacherById(Integer id);
	public Teacher getTeacherByUsername(String username);
	public void addNewTeacher(Teacher teacher);
	public void deleteTeacherById(Integer id);
	public void updateTeacherInfo(Teacher teacher);
	public void updateTeacherPassword(Teacher teacher);

}
